package com.zt.chatgpt.domain.security.model.vo;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author: zt
 * @Description: Token 信息
 * @create: 2024-05-08 23:35
 */

public class JwtToken implements AuthenticationToken{

    private String jwt;

    public JwtToken(String jwt) {
        this.jwt = jwt;
    }

    /**
     * 账户
     */
    @Override
    public Object getPrincipal() {
        return jwt;
    }

    /**
     * 密码
     */
    @Override
    public Object getCredentials() {
        return jwt;
    }
}
